package com.bsoft.gol.hbs.utils;

/**
 * 拼装URL工具类
 */
public class URLUtil {

    public static  String getAccessTookenURL(String appId,String secret){
        return Constants.ACCESS_TOKEN_URL.replace("APPID",appId).replace("APPSECRET",
         secret)
                + "&requestType=getAccessToken";
    }

    public static String getRedirect(String url,String appId){
      return Constants.AUTH_PROJECT_URL.replace("APPID", appId).replace("REDIRECT_URI", url);
    }
}
